package com.houweishi.module.history.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.houweishi.common.annotation.DataSource;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;

/**
 * 员工工作经历对象 biz_work_history
 * 
 * @author houweishi
 * @date 2023-02-21
 */
@Data
public class BizWorkHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 员工id */
//    @Excel(name = "员工id")
    private Long staffId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String name;

    /** 曾任职公司 */
    @Excel(name = "曾任职公司")
    private String previousCompany;

    /** 曾任职岗位 */
    @Excel(name = "曾任职岗位")
    private String previousPosition;

    /** 起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 离职时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "离职时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 离职原因 */
    @Excel(name = "离职原因")
    private String reasonsForLeaving;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPreviousCompany(String previousCompany) 
    {
        this.previousCompany = previousCompany;
    }

    public String getPreviousCompany() 
    {
        return previousCompany;
    }
    public void setPreviousPosition(String previousPosition) 
    {
        this.previousPosition = previousPosition;
    }

    public String getPreviousPosition() 
    {
        return previousPosition;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setReasonsForLeaving(String reasonsForLeaving) 
    {
        this.reasonsForLeaving = reasonsForLeaving;
    }

    public String getReasonsForLeaving() 
    {
        return reasonsForLeaving;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("staffId", getStaffId())
            .append("name", getName())
            .append("previousCompany", getPreviousCompany())
            .append("previousPosition", getPreviousPosition())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("reasonsForLeaving", getReasonsForLeaving())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
